package com.xy.pattern.cor;

public class Main {
    public static void main(String[] args) {
        String input = "!!!!!!";
        String output = "&&&&&&&";
        ChainFilter chainFilter = new ChainFilter();
        chainFilter.add(new FilterA()).add(new FilterB()).add(new FilterC());
        chainFilter.doFilter(input, output, chainFilter);
    }
}
